<%@page import="lbsproject.processaudit.model.Worker"%>
<%@page import="lbsproject.processaudit.model.WorkRegion"%>
<%@page import="web.lbsproject.processaudit.model.CheckTaskDefine4Web"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
				<!-- Begin: WEB-INF/template/executeManage/queryForm.jsp -->
				<p class="form-item">
					<label class="item-t" for="startDate">起始日期：</label><input class="Wdate" onclick="WdatePicker()" size="12" type="text" name="startDate" value="<%=request.getAttribute("startDate") %>" id="startDate"/>
					<label class="item-t" for="endDate">终止日期：</label><input class="Wdate" onclick="WdatePicker()" size="12" type="text" name="endDate" value="<%=request.getAttribute("endDate") %>" id="endDate"/>
					
					<input type="submit" class="btn search-btn" value="  查询  " id="search"/>
					
					<a href="#" class="search-ctrl up" id="j-search-ctrl">展开</a>
				</p>
				<div class="search-more" id="j-search-more" >
				<p class="form-item">
					<label class="item-t" for="type">任务种类：</label>
					<input type="radio" id="typeALL" name="type" value="ALL" checked="checked" /><label>全部&nbsp;</label>
					<input type="radio" id="typeCheck" name="type" value="CHECK" /><label>巡检&nbsp;</label>
					<input type="radio" id="typeRepair" name="type" value="REPAIR" /><label>维修&nbsp;</label>
				</p>
				<p class="form-item">
					<label class="item-t" for="taskDefine">任务：</label>
					<select id="taskDefine" name="taskDefine">
						<option value="ALL">全部</option>
						<%
						@SuppressWarnings("unchecked")
						List<CheckTaskDefine4Web> allTaskDefines = 
							(List<CheckTaskDefine4Web>)request.getAttribute("taskDefines");
						for (CheckTaskDefine4Web define: allTaskDefines) {
						%>
						<option value="<%=define.getId()%>"><%=define.getDescription()%></option>
						<%
						}
						%>
					</select>
					<label class="item-t" for="worker">人员：</label>
					<select id="worker" name="worker">
						<option value="ALL">全部</option>
						<%
						@SuppressWarnings("unchecked")
						List<Worker> allWorkers = 
							(List<Worker>)request.getAttribute("workers");
						for (Worker worker: allWorkers) {
						%>
						<option value="<%=worker.getWorkerID() %>"><%=worker.getName() %></option>
						<%
						}
						%>
					</select>
					<label class="item-t" for="region">片区：</label>
					<select id="region" name="region">
						<option value="ALL">全部</option>
						<%
						@SuppressWarnings("unchecked")
						List<WorkRegion> allRegions = 
							(List<WorkRegion>)request.getAttribute("regions");
						for (WorkRegion region: allRegions) {
						%>
						<option value="<%=region.getId()%>"><%=region.getName() %></option>
						<%
						}
						%>
					</select>	
				</p>
				<p class="form-item">
					<label class="item-t" for="taskStatus">任务状况：</label>
					<select id="taskStatus" name="taskStatus">
						<option value="ALL">全部</option>
						<option value="CREATED">未执行</option>
						<option value="STARTED">执行中</option>
						<option value="FINISHED">已完成</option>
						<option value="CANCELED">已取消</option>
					</select>
					<label class="item-t" for="exeResult">执行结果：</label>
					<select id="exeResult" name="exeResult">
						<option value="ALL">全部</option>
						<option value="NORMAL">正常</option>
						<option value="NEED_REPAIR">报修</option>
					</select>
				</p>
				</div>
				<p class="form-item">
				</p>
				<!-- END -->
				